package vip.ifmm.lehouse.common.bo;

import lombok.ToString;
import vip.ifmm.lehouse.common.enums.type.CommodityStatusType;
import vip.ifmm.lehouse.common.model.Commodity;

import java.io.Serializable;
import java.util.List;

/**
 * 商品记录的所有信息，用于业务之间传输
 *
 * @author Fish
 * <p>Email: fishinlove@163.com</p>
 * <p>created by 2019/06/21 19:36:45</p>
 */
@ToString
public class CommodityBo implements Serializable {

    private static final long serialVersionUID = 1026292083461358351L;

    private Commodity commodity = null;
    private CommodityStatusType commodityStatusType = CommodityStatusType.NORMAL;
    private List<String> linkedImages = null;
    private String commodityDetail = null;

    public Commodity getCommodity() {
        return commodity;
    }

    public CommodityBo setCommodity(Commodity commodity) {
        this.commodity = commodity;
        return this;
    }

    public CommodityStatusType getCommodityStatusType() {
        return commodityStatusType;
    }

    public CommodityBo setCommodityStatusType(CommodityStatusType commodityStatusType) {
        this.commodityStatusType = commodityStatusType;
        return this;
    }

    public List<String> getLinkedImages() {
        return linkedImages;
    }

    public CommodityBo setLinkedImages(List<String> linkedImages) {
        this.linkedImages = linkedImages;
        return this;
    }

    public String getCommodityDetail() {
        return commodityDetail;
    }

    public CommodityBo setCommodityDetail(String commodityDetail) {
        this.commodityDetail = commodityDetail;
        return this;
    }
}
